import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class SecondWidget extends StatefulWidget {
  @override
  _SecondWidgetState createState() => _SecondWidgetState();
}

class _SecondWidgetState extends State<SecondWidget> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: PreferredSize(
        child: AppBar(
          elevation: 0,
          title: Text("第二页",style: TextStyle(fontSize: 16,color: Colors.black),overflow: TextOverflow.fade,maxLines: 1,),
        ),
        preferredSize: Size.fromHeight(45),
      ),
      body: Container(
        color: Colors.blue,
        alignment: Alignment.center,
        child: Text("hello,world",style: TextStyle(fontSize: 24,color:Colors.white,fontWeight: FontWeight.bold),),
      ),
    );
  }
}
